package com.example.io;




/*
*
* 反序列化
*
* */

import com.example.domain.Student;

import java.io.FileInputStream;
import java.io.IOException;
import java.io.ObjectInputStream;

public class Test05 {
    public static void main(String[] args) throws IOException, ClassNotFoundException {
        ObjectInputStream objectInputStream = new ObjectInputStream(
                new FileInputStream("D:\\27162\\Desktop\\itheima\\untitled2\\test04.txt")
        );
        Student object = (Student) objectInputStream.readObject();
        System.out.println(object);
    }
}
